package com.automannn.sso;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Profile;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.core.Authentication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author automannn
 * @Date 2025/6/29
 */
@SpringBootApplication
@Profile("cas")
@EnableWebSecurity(debug = true)
public class CasApplication {



    @GetMapping("/user")
    @ResponseBody
    public Authentication user(Authentication user){
        return user;
    }

    public static void main(String[] args) {
        SpringApplication.run(CasApplication.class);
    }
}
